import http from "@/utils/http"
export const orderInfo=()=>{
  return http.get("/order/trade")
}

export const orderAddress=()=>{
  return http.get('/userAddress/getOrderAddress')
}
export const orderBuy=(goodsId,blessing)=>{
  return http.get(`/order/buy/${goodsId}?blessing=${blessing}`)
}
export const submitOrder=(data)=>{
  return http.post(`/order/submitOrder`,data)
}
// 订单id 提交成功后获取的
export const prePayInfo=(orderNo)=>{
  return http.get(`/webChat/createJsapi/${orderNo}`)
}
export const prePayStatus=(orderNo)=>{
  return http.get(`/webChat/queryPayStatus/${orderNo}`)
}
export const  getOrderList=(page,limit)=>{
  return http.get(`/order/order/${page}/${limit}`)
}